package com.example.spring_es.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yuegang
 */
@RestController
public class TestController {

    @GetMapping("/")
    public String test() {
        return "{\"test\": true}";
    }

    /**
     * GET http://localhost:8081/tset?parms=1&parms=2
     * @param parms
     * @return
     */
    @GetMapping("/tset")
    public Object getTest(@RequestParam List<Long> parms) {
        return parms;
    }
}
